package com.tigase.service;

import com.tigase.bean.TigaseGroup;
import com.tigase.bean.TigaseGroupMembers;
import java.util.List;
import java.util.Map;

/**
 * Created by tianfeng on 2017/7/21.
 */
public interface GroupService {
    //保存群信息
    int insertGroup(TigaseGroup group);
    //查找群列表
    List<TigaseGroup> selectGroupByUserId(String userId);
    //查找群成员
    List<Map<String,String>> findGroupMenmber(String groupId);
    //获取群jid，查看是否存在群
    TigaseGroup getGroupJid(String jid);
    //移除群成员，退群
    int delGroupMember(String userid);
    //保存群成员信息

    int insertGroupMember(TigaseGroupMembers members);
}
